define({ "api": [
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro",
    "title": "获取商品数据",
    "version": "0.0.0",
    "description": "<p>请求所有商品数据，不需要传参</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"data\":[{},{},...]\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiPro"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/column",
    "title": "获取商品分类",
    "version": "0.0.0",
    "description": "<p>获取商品分类</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/column"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProColumn"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/count",
    "title": "获取数据总条数",
    "version": "0.0.0",
    "description": "<p>获取数据总条数</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/count"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProCount"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/one",
    "title": "获取商品详情数据",
    "version": "0.0.0",
    "description": "<p>获取商品详情数据，需要发送商品Id</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>商品Id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "error": {
      "fields": {
        "Error 4xx": [
          {
            "group": "Error 4xx",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Error 4xx",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Error 4xx",
            "type": "String",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Error-Response:",
          "content": "res.send({\n    state:204,\n    title:\"请求失败\",\n    data:\"NOT DATA\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/one"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProOne"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/page",
    "title": "获取指定分页的商品数据",
    "version": "0.0.0",
    "description": "<p>获取指定分页的商品数据，需要发送页码和单页条数</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "index",
            "defaultValue": "0",
            "description": "<p>页码</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "num",
            "defaultValue": "10",
            "description": "<p>单页条数</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/page"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProPage"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/search",
    "title": "根据指定关键字搜索商品名称",
    "version": "0.0.0",
    "description": "<p>根据指定关键字搜索商品名称，需要发送搜索关键字</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "search",
            "description": "<p>要搜索的关键字</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/search"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProSearch"
  },
  {
    "group": "商品数据",
    "type": "get",
    "url": "/api/pro/sort",
    "title": "获取指定字段排序后的商品数据",
    "version": "0.0.0",
    "description": "<p>获取指定字段排序后的商品数据，需要发送排序字段和排序方向，需要手动在地址中拼接要排序的字段和排序方向（1或-1）</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"请求成功\",\n    data:data\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/pro/sort"
      }
    ],
    "filename": "api/pro.js",
    "groupTitle": "商品数据",
    "name": "GetApiProSort"
  },
  {
    "group": "用户信息",
    "type": "get",
    "url": "/api/user/getUser",
    "title": "获取个人信息",
    "version": "0.0.0",
    "description": "<p>根据用户id获取个人信息</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>用户的唯一id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>登录成功之后的token</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>用户的个人信息</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"获取个人信息成功\",\n    data:{}\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/getUser"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户信息",
    "name": "GetApiUserGetuser"
  },
  {
    "group": "用户信息",
    "type": "get",
    "url": "/api/user/login",
    "title": "用户登录",
    "version": "0.0.0",
    "description": "<p>用户登录，用户名或手机号只需要输入一个即可</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "passWord",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "id",
            "description": "<p>登录用户的id</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:201,\n    title:\"用户名没有注册\"\n})\nres.send({\n    state:202,\n    title:\"密码不符\"\n})\nres.send({\n    state:200,\n    title:\"登录成功\",\n    id:用户id\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/login"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户信息",
    "name": "GetApiUserLogin"
  },
  {
    "group": "用户信息",
    "type": "get",
    "url": "/api/user/sendMsg",
    "title": "短信验证码",
    "version": "0.0.0",
    "description": "<p>发送短信验证码</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "tel",
            "description": "<p>接收短信验证码的手机号</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"code\":\"123456\"\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/sendMsg"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户信息",
    "name": "GetApiUserSendmsg"
  },
  {
    "group": "用户信息",
    "type": "post",
    "url": "/api/user/register",
    "title": "用户注册",
    "version": "0.0.0",
    "description": "<p>用户注册</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "tel",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>短信验证码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "passWord",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:201,\n    title:\"用户名已被注册\"\n})\nres.send({\n    state:202,\n    title:\"请先发送验证码\"\n})\nres.send({\n    state:203,\n    title:\"一个手机号只允许注册一个账号\"\n})\nres.send({\n    state:204,\n    title:\"验证码不正确\"\n})\nres.send({\n    state:200,\n    title:\"注册成功\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/user/register"
      }
    ],
    "filename": "api/user.js",
    "groupTitle": "用户信息",
    "name": "PostApiUserRegister"
  },
  {
    "group": "购物车",
    "type": "get",
    "url": "/api/cart",
    "title": "获取购物车数据",
    "version": "0.0.0",
    "description": "<p>根据用户id，获取购物车数据</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要查询的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>后端的登录状态token</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:201,\n    title:\"读取成功,没有数据\",\n    data:\"NOT DATA\"\n})\nres.send({\n    state:200,\n    title:\"读取成功\",\n    data:data[0]\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "GetApiCart"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/add",
    "title": "添加购物车数据",
    "version": "0.0.0",
    "description": "<p>根据用户id，将商品id对应的数据存储到购物车</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要查询的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "proId",
            "description": "<p>要添加的商品的Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>后端的登录状态token</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"第一次插入成功\"\n})\nres.send({\n    state:200,\n    title:\"存储成功，更新数据成功\"\n})\nres.send({\n    state:200,\n    title:\"读取成功\",\n    data:data[0]\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})\nres.send({\n    state:201,\n    title:\"商品不存在\"\n})\nres.send({\n    state:10086,\n    title:\"登录信息已失效，请重新登录\"\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/add"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartAdd"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/del",
    "title": "删除购物车数据",
    "version": "0.0.0",
    "description": "<p>根据用户id 和 商品id，删除购物车数据</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要查询的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "proId",
            "description": "<p>要删除的商品的id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"删除成功\"\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/del"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartDel"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/updateAllFlag",
    "title": "修改购物车中所有商品的选中状态",
    "version": "0.0.0",
    "description": "<p>根据用户id 和 状态，修改购物车中所有商品的选中状态</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要修改的购物车的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": false,
            "field": "flag",
            "description": "<p>要修改的购物车的商品的状态</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"修改状态成功\"\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/updateAllFlag"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartUpdateallflag"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/updateFlag",
    "title": "修改购物车中商品的选中状态",
    "version": "0.0.0",
    "description": "<p>根据用户id 和 商品id 和 状态，修改购物车中商品的选中状态</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要修改的购物车的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "proId",
            "description": "<p>要修改的购物车的商品的Id</p>"
          },
          {
            "group": "Parameter",
            "type": "Boolean",
            "optional": false,
            "field": "flag",
            "description": "<p>要修改的购物车的商品的状态</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"修改状态成功\"\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/updateFlag"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartUpdateflag"
  },
  {
    "group": "购物车",
    "type": "post",
    "url": "/api/cart/updateNum",
    "title": "修改购物车中商品的数量",
    "version": "0.0.0",
    "description": "<p>根据用户id 和 商品id 和 数量，修改购物车中商品的数量</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userId",
            "description": "<p>要修改的购物车的用户Id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "proId",
            "description": "<p>要修改的购物车的商品的Id</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "num",
            "description": "<p>要修改的购物车的商品的数量</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "res.send({\n    state:200,\n    title:\"修改数量成功\"\n})\nres.send({\n    state: 10086,\n    title: \"登录信息已失效，请重新登录\",\n    data: err\n})",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/updateNum"
      }
    ],
    "filename": "api/cart.js",
    "groupTitle": "购物车",
    "name": "PostApiCartUpdatenum"
  },
  {
    "group": "轮播图数据",
    "type": "get",
    "url": "/api/banner",
    "title": "获取轮播图数据",
    "version": "0.0.0",
    "description": "<p>获取轮播图数据</p>",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "state",
            "description": "<p>请求状态</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "title",
            "description": "<p>请求说明</p>"
          },
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>请求数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n   \"state\":200,\n   \"title\":\"请求成功\",\n   \"data\":[{},{},...]\n}",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/banner"
      }
    ],
    "filename": "api/banner.js",
    "groupTitle": "轮播图数据",
    "name": "GetApiBanner"
  }
] });
